.class public Lcom/waiqin365/lightapp/photo/a/a;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/List;

.field private c:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/photo/a/a;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/photo/a/a;->b:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    iget v1, p0, Lcom/waiqin365/lightapp/photo/a/a;->c:I

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/ImagePreview;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    iget v1, p0, Lcom/waiqin365/lightapp/photo/a/a;->c:I

    invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/ImagePreview;->q()V

    :cond_0
    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7

    const/16 v6, 0x8

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/photo/c/a;

    if-nez p2, :cond_0

    new-instance v2, Lcom/waiqin365/lightapp/photo/a/b;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/photo/a/b;-><init>(Lcom/waiqin365/lightapp/photo/a/a;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a/a;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v3, 0x7f0301bc

    const/4 v4, 0x0

    invoke-virtual {v1, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v1, 0x7f0c096f

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/ImageView;)Landroid/widget/ImageView;

    const v1, 0x7f0c0971

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0972

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->b(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0970

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->c(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0973

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->d(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0974

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->e(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0976

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->f(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/TextView;)Landroid/widget/TextView;

    const v1, 0x7f0c0975

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;Lcom/waiqin365/lightapp/view/ImagePreview;)Lcom/waiqin365/lightapp/view/ImagePreview;

    invoke-static {v2}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/ImagePreview;->setBottomLineStatus(Z)V

    const v1, 0x7f0c0977

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    invoke-static {v2, v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;Landroid/widget/RelativeLayout;)Landroid/widget/RelativeLayout;

    invoke-static {v2}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview;->getId()I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/photo/a/a;->c:I

    invoke-virtual {p2, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v1, v2

    :goto_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/photo/a/a;->a:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->b(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/ImageView;

    move-result-object v3

    iget-object v4, v0, Lcom/waiqin365/lightapp/photo/c/a;->j:Ljava/lang/String;

    invoke-static {v2, v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->c(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->i:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->d(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/c/a;->q:Ljava/lang/String;

    if-eqz v2, :cond_1

    const-string/jumbo v2, ""

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->q:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->e(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->e(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->q:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/c/a;->e:Ljava/lang/String;

    if-eqz v2, :cond_2

    const-string/jumbo v2, ""

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->e:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->f(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->f(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->e:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/c/a;->o:Ljava/lang/String;

    if-eqz v2, :cond_3

    const-string/jumbo v2, ""

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->g(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->g(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_3
    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/c/a;->m:Ljava/lang/String;

    if-eqz v2, :cond_4

    const-string/jumbo v2, ""

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->m:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_4

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->h(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->h(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/lightapp/photo/c/a;->m:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_4
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v2

    invoke-virtual {v2, v6}, Lcom/waiqin365/lightapp/view/ImagePreview;->setTitlevisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v2

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/view/ImagePreview;->setType(I)V

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/c/a;->s:Ljava/util/List;

    if-eqz v2, :cond_5

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/view/ImagePreview;->setVisibility(I)V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/view/ImagePreview;->g()V

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/photo/c/a;->s:Ljava/util/List;

    invoke-virtual {v2, v0}, Lcom/waiqin365/lightapp/view/ImagePreview;->a(Ljava/util/List;)Z

    :goto_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne p1, v0, :cond_6

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->i(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/RelativeLayout;

    move-result-object v0

    invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    :goto_6
    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/photo/a/b;

    goto/16 :goto_0

    :cond_1
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->e(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_1

    :cond_2
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->f(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_2

    :cond_3
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->g(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_3

    :cond_4
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->h(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/TextView;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_4

    :cond_5
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->a(Lcom/waiqin365/lightapp/photo/a/b;)Lcom/waiqin365/lightapp/view/ImagePreview;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/view/ImagePreview;->setVisibility(I)V

    goto :goto_5

    :cond_6
    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/a/b;->i(Lcom/waiqin365/lightapp/photo/a/b;)Landroid/widget/RelativeLayout;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto :goto_6
.end method
